package com.zjy.pgcms.dto.reservation;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class ReservationPage {
    @JsonSerialize(using = ToStringSerializer.class)
    private long reservationId;
    private Date time;
    @JsonSerialize(using = ToStringSerializer.class)
    private long projectId;
    private String projectName;
    private Double price;
    @JsonSerialize(using = ToStringSerializer.class)
    private long userId;
    private String username;
    @JsonSerialize(using = ToStringSerializer.class)
    private long petId;
    private String petName;
    private int status;
}
